package com.thermal.thermal_inspection.mapper;

import com.thermal.thermal_inspection.entity.CaseInfo;
import org.apache.ibatis.annotations.*;

import java.util.List;

@Mapper
public interface CaseInfoMapper {

    // 插入提问
    int insertQuestion(CaseInfo caseInfo);

    // 根据 caseInfoId 更新回答
    int updateAnswer(@Param("caseInfoId") int caseInfoId,
                     @Param("answerInfo") String answerInfo);

    // 根据 caseId 查询该 Case 下的所有 CaseInfo
    List<CaseInfo> getCaseInfosByCaseId(@Param("caseId") int caseId);
}

